from admin.settings.mysql.mysql_settings import mysql_auth
from admin.settings.mysql.MySQL_DB import DB_Connect


class hostModel(object):


    def __init__(self):
        self.db_connect = DB_Connect(mysql_auth)


    def get_host(self, id):
        sql = '''
            select * from host where id = '%s'
        ''' % (id)

        data = self.db_connect.run_select_sql(sql)
        return data[0]
